import socket

sock = socket.socket()
sock.bind(('127.0.0.1', 8800))
sock.listen(5)

while 1:
    print('server waiting...')
    conn, _ = sock.accept()
    data = conn.recv(1024)
    print('data=', data)
    conn.send(b'HTTP/1.1 200 OK\r\n\r\n<h1>hello luffycity!</h1><img src="https://ss0.bdstatic.com/70cFuHSh_Q1YnxGkpoWK1HF6hhy/it/u=4167868735,3591612283&fm=26&gp=0.jpg" />')
    conn.close()
